#include<iostream>
using namespace std;
int main(){
 double a,b;
 cin>>a>>b;
 cout.precision(2);
 cout<<fixed;
 cout<<(a*b)/(a+b); 
}